package com.zp.builder;

/**
 * @author zhpeng
 * @discription
 * @created 2021/9/3 15:10
 */
public class HbuilderPatternDemo {
    public static void main(String[] args) {
        HouseBuilder houseBuilder = new HouseBuilder();
        Home home = houseBuilder.ordinaryHome();
        System.out.println("cost:"+home.getCost());
        home.showAllItems();
        home = houseBuilder.luxuryHome();
        System.out.println("cost:"+home.getCost());
        home.showAllItems();
    }
}
